home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
var
/
lib
/
dpkg
/
info
/
gcc.postinst
< prev
next >
Wrap
Text File
|
2008-06-19
|
892b
|
30 lines
#! /bin/sh -e
# remove the doc dir, if it's still a directory and replace with a symlink
pkg=`basename $0 .postinst`
if [ ! -L /usr/share/doc/$pkg ]; then
rm -rf /usr/share/doc/$pkg
ln -s cpp /usr/share/doc/$pkg
fi
update-alternatives --quiet \
--install /usr/bin/cc cc /usr/bin/gcc 20 \
--slave /usr/share/man/man1/cc.1.gz cc.1.gz /usr/share/man/man1/gcc.1.gz
update-alternatives --quiet \
--install /usr/bin/c89 c89 /usr/bin/c89-gcc 20 \
--slave /usr/share/man/man1/c89.1.gz c89.1.gz /usr/share/man/man1/c89-gcc.1.gz
update-alternatives --quiet \
--install /usr/bin/c99 c99 /usr/bin/c99-gcc 20 \
--slave /usr/share/man/man1/c99.1.gz c99.1.gz /usr/share/man/man1/c99-gcc.1.gz
# remove f77 alternative left over from an old egcs version ...
if [ -h /etc/alternatives/f77 -a ! -e /etc/alternatives/f77 ]; then
rm -f /etc/alternatives/f77
fi
exit 0